import request from '@/utils/request'

export function getTaskList(params) {
  return request({
    url: '/task/list',
    method: 'get',
    params
  })
}

export function getTaskData(params) {
  return request({
    url: '/task',
    method: 'get',
    params
  })
}

export function createTask(params) {
  return request({
    url: '/task/insert',
    method: 'post',
    data: params
  })
}

export function updateTask(params) {
  return request({
    url: '/task/update',
    method: 'post',
    data: params
  })
}

export function deleteTask(params) {
  return request({
    url: '/task/delete',
    method: 'post',
    data: params
  })
}

export function deletePic(params) {
  return request({
    url: '/task/pic/delete',
    method: 'post',
    params
  })
}

